เมนูนำทาง
แม่แบบ:รายการอ้างอิง Technical detailsแม่แบบ:CSS3 multiple column layoutMultiple columns are generated by using CSS3, which is still in development; thus only browsers that properly support the multi-column property will show multiple columns with {{Reflist}}.[2][3]
These browsers support CSS3 columns:
These browsers do not support CSS3 columns:
{{Reflist}} uses a CSS rule in MediaWiki:Common.css to set the font size:
div.reflist { font-size: 90%; }
One of the following classes is assigned by the template when either column count or column width is set:
.references-column-count
and .references-column-count-n
(where n
is the numer of columns).references-column-width
The following CSS properties are utilized using the {{column-count}} and {{column-width}} templates:
column-count
CSS3 standardcolumn-width
CSS3 standard-moz-column-count
Mozilla CSS extension-moz-column-width
Mozilla CSS extension-webkit-column-count
Webkit CSS extension-webkit-column-width
Webkit CSS extensionBy editing your CSS, the personal appearance of the reference list can be customized. From Preferences, select the Appearance tab, then on the selected skin select Custom CSS. After editing and saving, follow the instructions at the top of the page to purge. See Wikipedia:Skin#Customisation (advanced users) for more help.
Font sizeThe font size for all reference lists defaults to 90% of the standard size. To change it, add:
ol.references,div.reflist,div.refbegin { font-size: 90%;}
Change 90% to the desired size.
ColumnsTo disable columns, add:
.references-column-count, .references-column-width { column-count: 1 !important; column-width: auto !important; -moz-column-count: 1 !important; -moz-column-width: auto !important; -webkit-column-count: 1 !important; -webkit-column-width: auto !important;}
Similarly, to force all reference lists to a number of columns, change the number.
Column dividersTo add dividers (rules) between columns, add:
.references-column-count, .references-column-width { column-rule: 1px solid #aaa; -moz-column-rule: 1px solid #aaa; -webkit-column-rule: 1px solid #aaa;}
You can alter the appearance of the dividers by changing the values.
Note that, whereas {{reflist|15em|group="e"}} works as expected, {{reflist|15em |group="e"}} (with an extra space) currently does not display in columns.
เมนูนำทาง
แม่แบบ:รายการอ้างอิง Technical detailsใกล้เคียง
แม่แบบ แม่แตงร่มใบ แมน-แบท แม่บ้านบัตเตอร์สกอตช์ แม่ของแผ่นดิน แม่แจ่ม แม่บ้านลึกลับกับครอบครัวอลเวง แม่แตง แซ่แบ้ แม่บ้าน (แก้ความกำกวม)แหล่งที่มา
WikiPedia: แม่แบบ:รายการอ้างอิง http://msdn.microsoft.com/en-us/library/cc351024(V... http://www.w3.org/TR/css3-multicol/ http://en.wikipedia.org/w/index.php?title=Special:... http://www.stuffandnonsense.co.uk/archives/css3_mu... https://tools.wmflabs.org/templatecount/index.php?...